<template>
  <div>
    <el-table  :data="proList" stripe style="width: 100%" border>
      <el-table-column prop="carouselImgOne" label="图片" width="80" align="center">
        <template slot-scope="scope">
          <el-image :z-index="zIndex" v-if="scope.row.carouselImgOne != null && scope.row.carouselImgOne != '' "
            slot="reference" :src="scope.row.carouselImgOne" class="image-rows" :preview-src-list="[scope.row.carouselImgOne]">
          </el-image>
        </template>
      </el-table-column>
      <el-table-column prop="productName" label="商品名称" :show-overflow-tooltip="true" width="300" />
      <el-table-column prop="retailPriceStr" label="零售价(元)" :show-overflow-tooltip="true" align="center"/>
      <el-table-column prop="stockNumber" label="商品库存" align="center"/>
    </el-table>
  </div>
</template>

<script>
export default {
  props: ["proList"],
  data() {
    return {
      zIndex: 3000,
    }
  },
  methods: {
  },
};
</script>

<style scoped>
  .el-form-item {
    margin-bottom: 0;
  }
</style>
